<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BOSS.Domain.Customers.CustomerAccount>" %>
<%@ Import Namespace="BOSS.Web.Extensions" %>

<%
    var data = Model.Items.Select(x => new
    {
        Id = x.Product.Id,
        Name = x.Product.Name,
        Model = x.Product.Model,
        ChargedBalance = x.ChargedBalance,
        DonatedBalance = x.DonatedBalance,
        TotalBalance = x.ChargedBalance + x.DonatedBalance,
    });   
%>
<%= Html.ToJson(data)%>
